<template>
  <view class="content">
    <image
      class="logo"
      src="/static/logo.png"
    />
    <view>
      <text class="title">
        {{ title }}
      </text>
    </view>
  </view>
</template>

<script>
import { mockNode } from '@/api'
export default {
  name: 'Index',
  data () {
    return {
      title: 'Hello World'
    }
  },
  onLoad () {
    this.init()
  },
  methods: {
    init () {
      mockNode().then(res => {
        console.log(res)
        console.log(this.$store.state.app.token)
      })
    }
  }
}
</script>

<style>
.content {
  text-align: center;
  height: 400upx;
}

.logo {
  height: 200upx;
  width: 200upx;
  margin-top: 200upx;
}

.title {
  font-size: 36upx;
  color: #8f8f94;
}
</style>
